<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
table {border-top:1px solid #ccc;border-left:1px solid #ccc;font-size:16px;}
th, td {width:80px;border-right:1px solid #ccc;border-bottom:1px solid #ccc;text-align:center;}
th {width:120px;font-size:20px;}
td {height:25px;}
table input[type="text"] {width:92%;border:0 none;text-align:center;}
table .bdr-btm-none{width:15px;border-bottom:none;}
.font18 {font-size:18px;}
.color-green {color:#008000;}
.color-red {color:#f00;}
.color-cyan {color:#0cf;}
.bg-yellow {background-color:#ff0;}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="14" style="height:70px;font-size:25px;">订单号：<?php echo $orderNum['order_sn'].'-'.$order_item_id;?>|货号：<?php echo $order['product_sn'];?>|<font color="red">商品名称：<?php echo $orderfigure['product_name']?></font></td>
  </tr>
  <tr>
    <th>客户名</th>
    <td><?php echo $measure['measure_name']?></td>
    <td>风格</td>
    <td><input type="text"/></td>
    <td class="bdr-btm-none"></td>
    <td>面料成份</td>
    <td colspan="2"><input type="text" value="<?php echo $suppliers['lining_name']?>"></td>
    <td colspan="2"><input type="text"/></td>
    <td colspan="4" rowspan="5"></td>
  </tr>
  <tr>
    <th rowspan="4">面料信息</th>
    <td>面料编号</td>
    <td colspan="2"><input type="text" value="<?php echo $suppliers['suppliers_name']?>"></input></td>
    <td class="bdr-btm-none"></td>
    <td>幅宽</td>
    <td><span><?php echo $suppliers['breadth']?></span><input type="text"></td>
    <td>耗料</td>
    <td colspan="2"><input type="text" value="<?php echo $suppliers['material']?>"></td>
  </tr>
  <tr>
    <td>撞色面料</td>
    <td colspan="2"><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td colspan="2"></td>
  </tr>
  <tr>
    <td>里料编号</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][$key]['cn_attr_value_name'])?$orderfigure['attr_array'][$key]['cn_attr_value_name']:' '?>"></td>
    <td class="bdr-btm-none"><input type="text"></td>
<?php 
	$lining_db = D('lining');
	$lining_info = $lining_db->where(array('suppliers_name'=>$orderfigure['attr_array'][$key]['cn_attr_value_name']))->find();
?>
    <td>幅宽</td>
    <td><input type="text" value="<?php echo isset($lining_info['breadth'])?$lining_info['breadth']:' '?>"></td>
    <td>耗料</td>
    <td colspan="2"><input type="text" value="<?php echo isset($lining_info['lining_name'])?$lining_info['material']:' '?>"></td>
  </tr>
  <tr>
    <td>撞色里料</td>
    <td colspan="2"><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td>里料成份</td>
    <td><input type="text" value="<?php echo isset($lining_info['lining_name'])?$lining_info['lining_name']:' '?>"></td>
    <td><input type="text"></td>
    <td colspan="2"></td>
  </tr>
  <tr>
    <th rowspan="19">服装</th>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td colspan="4" class="font18">西装</td>
    <td class="bdr-btm-none"></td>
    <td colspan="4" class="font18">西裤</td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>

    <td class="bdr-btm-none"><input type="text"></td>
    <td class="font18">版型</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array'][21])?$orderfigure['attr_array'][21]['cn_attr_value_name']:'没有';?>"></td>
    <td class="font18">尺码</td>
    <td class="font18 color-green bdr-btm-none"><input type="text"></td>
    <td></td>
    <td class="font18">版型</td>
    <td><input type="text" /></td>
    <td class="font18">尺码</td>

  </tr>
  <tr>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td><input type="text"></td>
    <td>成衣尺寸</td>
    <td class="color-green"><input type="text"></td>
    <td>MTM尺寸</td>
    <td class="bdr-btm-none"></td>
    <td><input type="text"></td>
    <td>成衣尺寸</td>
    <td class="color-green"><input type="text"/></td>
    <td>MTM尺寸</td>
  </tr>
  		<?php
			$data2 = unserialize($measure['measure_data']);
		?>
  <tr>
    <td>客户基本信息</td>
    <td>身高</td>
    <td><input type="text" value="<?php echo $data2['height']['cm']?>"></td>
    <td class="bdr-btm-none"></td>
    <td>衣长</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['shirt']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>裤长</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['pants']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
  </tr>
  <tr>
    <td></td>
    <td>体重</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['weight']['kg']?>"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>胸围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['chest']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>腰围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['waist']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
  </tr>
  <tr>
    <td></td>
    <td>年龄</td>
    <td><input type="text" value="<?php echo $data2['age']?>"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>腰围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['stomach']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>臀围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['pants_hips']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
  </tr>
  <tr>
    <td>客户体型信息</td>
    <td>肩</td>
    <td><input type="text" value="<?php if($data2['shoulder']['type']==1){echo "方肩";}elseif($data2['shoulder']['type']==2){echo "介于高和正常";}elseif($data2['shoulder']['type']==3){echo "正常";}elseif($data2['shoulder']['type']==4){echo "介于正常和溜肩";}elseif($data2['shoulder']['type']==5){echo "溜肩";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>下摆</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['pants_hips']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>横档</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['thigh']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
  </tr>
  
  <tr>
    <td></td>
    <td>胸</td>
    <td><input type="text" value="<?php  if($data2['chest']['type']==1){echo "胸肌发达";}elseif($data2['chest']['type']==2){echo "介于发达和正常";}elseif($data2['chest']['type']==3){echo "正常";}elseif($data2['chest']['type']==4){echo "介于正常和肥胖";}elseif($data2['chest']['type']==5){echo "厚胸";}else{echo '正常';} ?>"></td>
    <td class="bdr-btm-none"></td>
    <td>肩宽</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['jacket_back']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td>中档</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['knee']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
  </tr>
  <tr>
    <td></td>
    <td>肚</td>
    <td><input type="text" value="<?php  if($data2['stomach']['type']==1){echo "平肚";}elseif($data2['stomach']['type']==2){echo "介于平腹和微凸";}elseif($data2['stomach']['type']==3){echo "正常";}elseif($data2['stomach']['type']==4){echo "介于微凸和凸腹";}elseif($data2['stomach']['type']==5){echo "凸肚";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>袖长</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['sleeve']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
     <td>脚口</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['pants_cuffs']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>背</td>
    <td><input type="text" value="<?php if($data2['posture']['type']==1){echo "平背";}elseif($data2['posture']['type']==2){echo "微挺";}elseif($data2['posture']['type']==3){echo "正常";}elseif($data2['posture']['type']==4){echo "微驼";}elseif($data2['posture']['type']==5){echo "驼背";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>袖肥</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['bicep']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td>直档</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['crotch']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td>袖口</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['wrist']['cm']?>"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td></td>
    <td class="color-red"><input type="text"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td></td>
  </tr>
 <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td>背宽</td>
    <td class="color-red"><input type="text"></td>
    <td class="bg-yellow"><input type="text"></td>
    <td class="color-cyan"><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td></td>
    <td class="color-red"><input type="text"></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td ></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>MTM变更</td>
    <td class="color-green"><input type="text"></td>
    <td class="color-cyan"><span></span><input type="text"></td>
    <td class="bdr-btm-none"><input type="text"></td>
    <td></td>
    <td>MTM变更</td>
    <td class="color-green"><input type="text"></td>
    <td class="color-cyan"><span></span><input type="text"></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td class="color-green"><input type="text"></td>
    <td class="color-cyan"><span></span><input type="text"></td>
    <td class="bdr-btm-none"><span></span><input type="text"></td>
    <td></td>
    <td></td>
    <td></td>
    <td><input type="text"><span></span><input type="text"></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3"></td>
    <td class="bdr-btm-none"></td>
    <td colspan="3"></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td colspan="4"></td>
  </tr>
  <tr>
    <th rowspan="12">客户款式选项</th>
    <td>珠边线</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][138])?$orderfigure['attributes_more_array'][138]['cn_attr_value_name']:'没有';?>"></td>
    <td ></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>领型</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][22])?$orderfigure['attr_array'][22]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>裤前褶</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][35])?$orderfigure['attr_array'][35]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>插花眼撞色</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array']['插花眼撞色'])?$orderfigure['attr_array']['插花眼撞色']['cn_attr_value_name']:'没有';?>"></td>
    <td></td>
    <td ></td>
    <td class="bdr-btm-none"></td>
    <td>门襟扣</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][25])?$orderfigure['attr_array'][25]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>调节袢</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][132])?$orderfigure['attributes_more_array'][132]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>插花眼打开</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array'][91])?$orderfigure['attr_array'][91]['cn_attr_value_name']:'没有';?>"></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td>上衣口袋</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][26])?$orderfigure['attr_array'][26]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>后袋型</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][38])?$orderfigure['attr_array'][38]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>绣字第一行</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][30])?$orderfigure['attr_array'][30]['cn_attr_value_name']:'没有';?>"></td>
    <td ></td>
    <td></td>
    <td>挂面</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][29])?$orderfigure['attr_array'][29]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>脚口翻边</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][131])?$orderfigure['attributes_more_array'][131]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>绣字第二行</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][31])?$orderfigure['attr_array'][31]['cn_attr_value_name']:'没有';?>"></td>
    <td ></td>
    <td></td>
    <td>智能袋</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][137])?$orderfigure['attributes_more_array'][137]['cn_attr_value_name']:'没有';?>"></td>
	<td class="bdr-btm-none"></td>
    <td></td>
    <td>裤腰头</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][36])?$orderfigure['attr_array'][36]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>绣字字体</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array'][32])?$orderfigure['attr_array'][32]['cn_attr_value_name']:'没有';?>"></td>
    <td></td> 
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>后叉</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][24])?$orderfigure['attr_array'][24]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>裤袢</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][133])?$orderfigure['attributes_more_array'][133]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>绣字颜色</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array'][33])?$orderfigure['attr_array'][33]['cn_attr_value_name']:'没有';?>"></td>
    <td></td> 
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>袖叉</td>
    <td colspan="2"><input type="text" value="<?php if($orderfigure['attributes_more_array'][136]['cn_attr_value_name']=='有'){echo '开真叉';}else{echo '开假叉';}?>"</td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>背带扣</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][134])?$orderfigure['attributes_more_array'][134]['cn_attr_value_name']:'没有';?>"></td>
  </tr>
  <tr>
    <td>字体大小</td>
    <td><input type="text" value=""></td>
    <td></td> 
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>腰袋</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attributes_more_array'][273])?$orderfigure['attributes_more_array'][273]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>领底呢</td>
    <td><input type="text"></td>
    <td></td> 
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>里布</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][34])?$orderfigure['attr_array'][34]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>手巾袋</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][28])?$orderfigure['attr_array'][28]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>袖肘贴</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array']['肘贴'])?$orderfigure['attr_array']['肘贴']['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>笔袋</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][55])?$orderfigure['attr_array'][55]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td align="center">
      <input type="button" class="button" onclick="javascript:window.print();" value="打印" />
    </td>
  </tr>
</table>
<script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script>
$(function() {
	$('table').find('td > span').click(function() {
		$(this).hide().siblings('input[type=text]').show().focus();
	});
	$('table').find('input[type=text]').blur(function() {
		$(this).hide().siblings('span').text($(this).val()).show();
	});
});
</script>
</body>
</html>
